package com.xf.spring.factory;

import com.xf.spring.cycle.Car;
import org.springframework.context.support.ClassPathXmlApplicationContext;


public class Test {

	public static void main(String[] args) {
		ClassPathXmlApplicationContext ct = new ClassPathXmlApplicationContext("xmls/bean-factory.xml");
		com.xf.spring.factory.Car car=(com.xf.spring.factory.Car)ct.getBean("car2");
		System.out.println(car);
		ct.close();
		
	}

}
